use crate::config::api_config::ApiResult;
use salvo::handler;
use salvo::Depot;
use salvo::Request;

#[handler]
#[tracing::instrument]
pub async fn wx_call_back(request: &mut Request, depot: &mut Depot) -> ApiResult<()> {
    let json = request.parse_json::<String>().await;
    println!("{:?}", json);
    ApiResult::success(())
}